<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        {% block title %}
        {% endblock %}
    </title>
    <link rel="stylesheet" href="{% static 'css/base/reset.css' %}">
    <link rel="stylesheet" href="{% static 'css/base/common.css' %}">
    <link rel="stylesheet" href="{% static 'css/base/side.css' %}">
    <link href="http://at.alicdn.com/t/font_747221_dwr4977p0kb.css"
          rel="stylesheet">
    {% block link %}
    {% endblock %}
</head>
<body>
<!-- header start -->
<header id="header">
    <div class="mw1200 header-contain clearfix">
        <!-- logo start -->
        <h1 class="logo">
            <a href="javascript:void(0);" class="logo-title">Python</a>
        </h1>
        <!-- logo end -->
        <!-- nav start -->
        <nav class="nav">
            <ul class="menu">
                <li class="active"><a href="{% url 'news:index' %}">首页</a></li>
                <li><a href="{% url 'course:course' %}">在线娱乐</a></li>
                <li><a href="{% url 'docs:load' %}">下载文档</a></li>
                <li><a href="{% url 'news:search' %}">搜索</a></li>
            </ul>
        </nav>
        <!-- nav end -->
        <!-- login start -->
        <div class="login-box">
            {% if user.is_authenticated %}
                <div class="author">
                    <i class="iconfont icon-icon py-user"></i>
                    <span>{{ user.username }}</span>
                    <ul class="author-menu">
                        <li><a href="{% url 'admin:index' %}">后台管理</a></li>
                        <li><a href="{% url 'user:logout' %}">退出登录</a></li>
                    </ul>
                </div>
            {% else %}
                <div>
                    <i class="iconfont icon-icon py-user"></i>
                    <span>
                  <a href="{% url 'user:login' %}" class="login">登录</a> / <a href="{% url 'user:register' %}" class="reg">注册</a>
              </span>
                </div>
            {% endif %}
        </div>
        <!-- login end -->
    </div>
</header>
<!-- header end -->
{% block main %}

{% endblock %}



<!-- footer start -->
<footer id="footer">
    <div class="footer-box">
        <div class="footer-content">
            <p class="top-content">
					<span class="link">
						<a href="javascript:void(0)">关于Python</a> |
						<a href="javascript:void(0)">嘿嘿嘿嘿</a> |
						<a href="javascript:void(0)">Django</a> |
						<a href="javascript:void(0)">网络爬虫</a>
					</span>
                <span class="about-me">关于我: <i class="iconfont "></i>Bingo</span>
            </p>
            <p class="bottom-content">
                <span>地址： xxxx</span>
                <span>联系方式: <a href="tel:000000000">0000000000</a>嘻嘻哈哈</span>
            </p>
        </div>
        <p class="copyright-desc">
            Copyright &copy; 2008 - 2018 xxx个人项目. All Rights Reserved
        </p>
    </div>
</footer>
<!-- footer end -->
<script src="/static/js/base/jquery.js"></script>
<script src="/static/js/base/bootstrap.min.js"></script>
<script src="/static/js/base/message.js"></script>
<script src="/static/js/base/common.js"></script>
<script src="/static/js/base/csrf.js"></script>

{% block script %}

{% endblock %}

</body>
</html>
